package com.hosp.hospitalservicehosp;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * 医院设置 curd
 */
@SpringBootApplication()
@MapperScan(basePackages = "com.hosp.hospitalservicehosp.mapper")
@ComponentScan("com.hosp.hospitalservicehosp.service")
@ComponentScans(value = {
        @ComponentScan("com.common"),
        @ComponentScan("com.hosp.hospitalservicehosp.controller"),
        @ComponentScan("com.hosp.hospitalservicehosp.config") // 扫描配置 分页
})
public class HospitalServiceHospApplication {

    public static void main(String[] args) {
        SpringApplication.run(HospitalServiceHospApplication.class, args);
    }
}
